jQuery.fn.MakeTable = function (checkboxFlag, objColumn, objData, objClassName, columnList, operateHtml) {

    //样式
    $(this).attr("class", objClassName);

    var sHtml = "";
    sHtml += "<thead>";

    var sTrHtml = "<tr>";
    $.each(objColumn, function (i) {

        sTrHtml += "<th ";
        sTrHtml += "style=\"width:" + objColumn[i].Width.toString() + "\"";
        sTrHtml += ">";
        sTrHtml += objColumn[i].ColumnName;
        sTrHtml += "</th>";

    });
    sTrHtml += "</tr>";
    sHtml += sTrHtml + "</thead>";

    sHtml += "<tbody>";

    if (objData && objData.length > 0) {
        $.each(objData, function (i) {
            sTrHtml = "<tr>";

            if (checkboxFlag) {
                sTrHtml += "<td><div class='checker' id='uniform-undefined'><span><input type='checkbox'></span></div></td>";
            }
            var objTr = objData[i];
            if (columnList && columnList != null && columnList != undefined) {
                for (k in columnList) {
                    var flag = true;
                    for (x in objTr) {
                        if (columnList[k] === x) {
                            sTrHtml += "<td><div style='word-wrap: break-word;'>";
                            sTrHtml += objTr[x];
                            sTrHtml += "</div></td>";
                            flag = false;
                            break;
                        }
                    }
                    if (flag) {
                        sTrHtml += "<td><div style='word-wrap: break-word;'>";
                        sTrHtml += "</div></td>";
                    }
                }
            } else {
                for (x in objTr) {
                    sTrHtml += "<td><div style='word-wrap: break-word;'>";
                    sTrHtml += objTr[x];
                    sTrHtml += "</div></td>";
                }
            }

            if (operateHtml != null && operateHtml != undefined && operateHtml != "") {
                sTrHtml += "<td>";
                sTrHtml += operateHtml;
                sTrHtml += "</td>";
            }
            sTrHtml += "</tr>";
            sHtml += sTrHtml;
        });
    } else {
        var columnNumber = 0;
        if (checkboxFlag) {
            columnNumber += 1;
        }
        columnNumber += columnList.length;
        sHtml += "<td colspan='" + columnNumber + "'><p>没有查到相关数据</p></td>";
    }

    sHtml += "</tbody>";
    var sId = this[0].id;
    $("#" + sId).append(sHtml);
};